package com.rongc.client.freight.business.mine.view.adapter;

import android.content.Context;

import com.rongc.client.freight.R;
import com.rongc.client.freight.base.view.adapter.RecyclerBaseAdapter;
import com.rongc.client.freight.business.mine.model.WalletBean;

import java.util.List;

/**
 * Created by ccqx on 2017/6/28.
 */

public class RecyclerWalletAdapter extends RecyclerBaseAdapter<WalletBean>{


    public RecyclerWalletAdapter(Context mContext, List<WalletBean> mDatas) {
        super(mContext, mDatas);
    }

    @Override
    protected void onBind(final BaseRecyclerViewHolder holder, int position, WalletBean data) {
        holder.setText(R.id.tv_account,data.getAccount());
        holder.setText(R.id.tv_detail,data.getDetail());
        holder.setText(R.id.tv_date,data.getDate());
    }

    @Override
    protected int getLayoutId() {
        return R.layout.recycler_wallet_item;
    }
}
